package com.lz.autotest.project.testmanage.autoTest.entity;

import com.lz.autotest.project.testmanage.infmanage.domain.InfItemResult;
import lombok.Data;

/**
 * @author: X
 * @date: Created in 2023/7/18 14:40
 * @Description: 传输给前端的对象
 */
@Data
public class ResultView {
    private String status; // "0"成功， "1"失败
    private Long consumeTime;
    private Long totalTime;
    private String reportId;
    private String infId;
    private String path;
    private String methodType;
    private String infName;
    private int errorType; //0为系统调用错误，1为调用超时错误
    private InfItemResult result;


    public boolean decideByStatus() {
        return status.equals("0") ? true : false;
    }
}
